﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Items_ItemsPriceHistory : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void gvPriceHistory_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void btnSearchByCode_Click(object sender, EventArgs e)
    {
        string searchCode = txtSearchByCode.Text;
        sdsItems.SelectCommand = "SELECT [LegID], [Code], [NameBG], [NameEN], [EXW1], [EXW2], [EXW3], [DDU1_EUR], [DDU2_EUR], [DDUEUR], [DDUBGN], [Count1], [Count2], [Count3], [Count4], [Weight] FROM [Legs] Where [Code] LIKE '%"+searchCode+"%';";
        gvItems.DataBind();
    }
}
